package com.zj.fx.model.auto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class TsysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "用户账号")
    private String username;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "用户密码")
    private String password2;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "部门id")
    private String depId;

    @ApiModelProperty(value = "岗位id")
    private String posId;

    @ApiModelProperty(value = "供电所id")
    private String supplyId;

    @ApiModelProperty(value = "分管领导名称（用于基础管理提升）")
    private String fgldName;

    @ApiModelProperty(value = "账号分类（0管理员/1供电所/2审核部门3分公司）")
    private String userType;

    @ApiModelProperty(value = "分公司id")
    private String subcompanyId;

    /**
     * 部门名称
     **/
    private String depName;
    /**
     * 岗位名称
     **/
    private String posName;

    /**
     * 供电所名称
     **/
    private String supplyName;

    /**
     * 分公司名称
     **/
    private String subCompanyName;

    /**
     * 角色代码
     **/
    private String roleId;

    public TsysUser(String id, String username, String password, String password2, String nickname, String depId, String posId, String supplyId, String subcompanyId) {
        super();
        this.id = id;
        this.username = username;
        this.password = password;
        this.password2 = password2;
        this.nickname = nickname;
        this.depId = depId;
        this.posId = posId;
        this.supplyId = supplyId;
        this.subcompanyId = subcompanyId;
    }


    public TsysUser() {
        super();
    }


    @Override
    public String

    toString() {
        return "TsysUser{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", password2='" + password2 + '\'' +
                ", nickname='" + nickname + '\'' +
                ", depId='" + depId + '\'' +
                ", posId='" + posId + '\'' +
                ", depName='" + depName + '\'' +
                ", posName='" + posName + '\'' +
                ", roleId='" + roleId + '\'' +
                ", supplyId='" + supplyId + '\'' +
                ", subcompanyId='" + subcompanyId + '\'' +
                '}';
    }
}